#pragma once

#include <windows.h>
#include <commctrl.h>
#include <vector>
#include <map>
#include <string>

class win_images
{
public:
    img_list();
    ~img_list();

    void release();

    int load(std::string name, UINT id, HINSTANCE inst);
    HBITMAP get(int idx);
    HBITMAP get(std::string name);

private:
    std::vector<HBITMAP> _hbmlist;
    std::map<std::string, int> _hbmindex;
};